<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>首页</title>
    <jsp:include page="include/resource.jsp"/>
</head>
<body>
<jsp:include page="include/header.jsp"/>
<div class="container" >
    <div class="col-sm-10">
        <div class="row">
            <c:forEach items="${pageInfo.list}" var="item">
                <div class="col-sm-6 col-md-4">
                    <div class="thumbnail">
                        <img alt="100%x200"
                             src="${item.path}" style="height: 200px; width: 100%; display: block;">
                        <div class="caption">
                            <h3>${item.name}</h3>
                            <p>${item.descript}</p>
                            <p style="text-align: center"><a href="/detail/${item.id}.do" class="btn btn-primary" role="button">查看详情</a></p>
                        </div>
                    </div>
                </div>
            </c:forEach>
        </div>

        <div class="row">
            <div class="col-sm-4 col-md-4"></div>
            <div class="col-sm-4 col-md-4">
                <jsp:include page="include/table-page.jsp"/>
            </div>
        </div>
    </div>
    <div class="col-sm-2">
        <ul class="list-group">
            <li class="list-group-item active">出行计划</li>
            <c:forEach items="${routeList}" var="item">
                <li class="list-group-item"><a href="/route/${item.id}.do">${item.address}</a></li>
            </c:forEach>

        </ul>
    </div>
</div>
</body>
</html>
